package net.zjitc.interfaces.printer;

/**
 * @Author admin
 * @Date 2019/3/22 10:24
 */
public class PrinterFactory {
    public static Printer getPrinter(int a) {
        Printer printer;
        if(a==1){
            printer=new HPPrinter();
        }else{
            printer=new CPrinter();
        }
        return printer;
    }
}
